import {useCookies} from '@vueuse/integrations/useCookies'

const TokenKey = 'admin-token'
const cookie = useCookies()


//获取tokne
export function getToken() {
    return cookie.get(TokenKey)
}

//设置token
export function setToken(token) {
    return cookie.set(TokenKey, token)
}

//清除token
export function removeToken(token) {
    return cookie.remove(TokenKey)
}